// 导入 sequelize 模块
import { Sequelize } from "sequelize";
// 导入 数据库 配置文件
// import { dbName, userName, passWord } from "../config/dbSetting.js";

// 创建 sequelize 实例并暴露（mysql）
// export const sequelize = new Sequelize(dbName, userName, passWord, {
//     dialect: "mysql"
// });

// 创建 sequelize 实例并暴露（sqlite）
export const sequelize = new Sequelize({
    dialect: "sqlite",
    storage: "./db/demo.db",
});